<?php
require dirname(__FILE__).'/../inc/inc.php';

$type=intval($type);
if ($type!=2 && $type!=3) $type=1;

//配置页面信息
$page_config=array(
	'title' => '上海抵押贷款|上海无抵押贷款|上海低息贷款_红枫金融',
	'keywords' => '红枫金融，注册公司，代理记账，工商注册',
	'description' => '红枫金融主要提供注册公司、代理记账、税务筹划等服务，主营地区有北京|上海|广州|南京|苏州|无锡|杭州|宁波|武汉|长沙等，已拥有近十万家客户，致力于成为中国企业首选的财务管家。',
	'css' => array('base','index','product'),
);

$where=" WHERE 1=1";
if ($type) $where.=" AND type={$type}";
$sql="SELECT id,pro_name,city_name,bank_name,yuelilv,daikuan_money,diyawu,shiyong FROM wb_jinrong_products".$where." ORDER BY id DESC";
$count=$db->getCount('wb_jinrong_products',$where);
$sql=getPage($sql,10,$count);
$list=$db->getData($sql);

//导入头部文件
require PATH_INC.'/header.php';
?>

	<div class="wrap bigbody">
		<!--当前位置-->
		<div class="wrap">
			<div class="nav">
				您的位置：<a href="/">首页</a> &gt; <a href="/product/">上海贷款</a> &gt; <a href="./list_<?php echo $type; ?>_1.html"><?php echo $cf_jinrong_products_type[$type]; ?></a>
			</div>
		</div>

		<div class="pageL fl">
			<!--贷款评估-->
			<h2 class="title">贷款评估</h2>
			<div class="pg_img fl">
				<a href="javascript:kefuzixun()"></a>
			</div>

			<!--业务类型-->
			<div class="yewuleixin">
				<div class="tit fl">业务类型</div>
				<ul class="fl">
					<li <?php echo ($type==1)?'class="yewu_selected"':''; ?>><p><a href="./list_1_1.html">抵押贷款</a></p></li>
					<li <?php echo ($type==2)?'class="yewu_selected"':''; ?>><p><a href="./list_2_1.html">无抵押贷款</a></p></li>
					<li <?php echo ($type==3)?'class="yewu_selected"':''; ?>><p><a href="./list_3_1.html">信用贷款</a></p></li>
				</ul>
			</div>

			<div>
				<table id="diya" class="table fl">
					<?php foreach ($list as $v) : ?>
					<tr>
						<td colspan="2" class="pro_num"><img src="/static/images/index/yezi.jpg?v1.3"><?php echo $v['pro_name']; ?></td>
						<td>地区：<?php echo $v['city_name']; ?></td>
						<td>银行：<?php echo $v['bank_name']; ?></td>
					</tr>
					<tr class="cen">
						<td><?php echo $v['yuelilv']; ?><span>起</span></td>
						<td><?php echo $v['daikuan_money']; ?></td>
						<td>50年<span>(最高)</span></td>
						<td><?php echo $v['diyawu']; ?></td>
						<td><?php echo $v['shiyong']; ?></td>
						<td><a href="./item_<?php echo $v['id']; ?>.html" class="btn-table">查看详情</a></td>
					</tr>
					<tr class="bot">
						<td>月利率</td>
						<td>贷款额度</td>
						<td>可借贷年限</td>
						<td>抵押物</td>
						<td>适用范围</td>
					</tr>
					<?php endforeach; ?>
				</table>	
			</div>
			<div class="paging"><?php echo htmllistPages('./list_'.$type.'_')?></div>
		</div>
		<?php require dirname(__FILE__).'/sidebar.php'; ?>
	</div>
	
<?php require PATH_INC.'/footer.php'; ?>
</body>
</html>

